/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ac.logic;

import ac.entities.Alimento;
import ac.persistence.PersistAlimento;

/**
 *
 * @author freddy
 */
public class LogicAlimento {

    PersistAlimento persist = new PersistAlimento();

    public boolean insertAlimento(Alimento alimento){
        boolean result = false;
        alimento.setIdAlimento(persist.buscarUltimoAlimento()+1);
        result = persist.insertAlimento(alimento);
        return result;
    }
}
